﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Vit.Web.Services
{
    public interface IDataSourceService
    {
        object GetSourceData(Type entityType, params object[] paras);
        object GetSourceData<T>(Type entityType, string dataSourceName, params object[] paras);
        IEnumerable<SelectListItem> GetSourceListItems(Type entityType, params object[] paras);
        IEnumerable<SelectListItem> GetSourceListItems(Type entityType, string dataSourceName, params object[] paras);

        string GetDisplayText(Type entityType, params object[] ids);
    }
}
